package com.bw.mine.adapter

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bw.mine.R

import com.bw.mine.entity.MineEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MineAdapter:BaseQuickAdapter<MineEntity,BaseViewHolder>(R.layout.item_mine) {
    override fun convert(holder: BaseViewHolder, item: MineEntity) {
        var img = holder.getView<ImageView>(R.id.item_mine_img)
        Glide.with(img).load(item.img).into(img)
        holder.setText(R.id.item_mine_tv,item.title)
    }
}